// 页面路径：store/index.js
import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex); //vue的插件机制

//Vuex.Store 构造器选项
const store = new Vuex.Store({
	state: {
		//存放状态
		activeMenuParent: 0,
		activeMenuChild: 0,
		currentNavFullTitle: "",
		copyright: "版权所有@中普钢成 技术支持：赢辉网络",


		returnsData: ''
	},
	mutations: {
		setReturnsData(state, data) {
			state.returnsData = data
		},


	}
});
export default store;